﻿using System.Collections;

namespace Xss.Collections
{
    public class ParamDictionary : Hashtable
    {
        public ParamDictionary()
        {

        }
        public ParamDictionary(int capacity)
            : base(capacity)
        {

        }
        public ParamDictionary(int capacity, float loadFactor)
            : base(capacity, loadFactor)
        {

        }
        public ParamDictionary(int capacity, IEqualityComparer equalityComparer)
            : base(capacity, equalityComparer)
        {

        }
        public ParamDictionary(IDictionary d)
            : base(d)
        {

        }
        public ParamDictionary(IDictionary d, float loadFactor)
            : base(d, loadFactor)
        {

        }

        public ParamDictionary AddContinue(object key, object value)
        {
            base.Add(key, value);
            return this;
        }

        public static ParamDictionary NewInstance(object key, object value)
        {
            return new ParamDictionary().AddContinue(key, value);
        }
    }
}
